package org.example.xss_resist;

import org.example.xss_resist.common.util.xss.XSSMappingJackson2HttpMessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.annotation.Bean;
import org.springframework.http.converter.HttpMessageConverter;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@SpringBootApplication
public class XssResistApplication {

	public static void main(String[] args) {
		SpringApplication.run(XssResistApplication.class, args);
	}
	@Bean
	public HttpMessageConverters xssHttpMessageConverters() {
		XSSMappingJackson2HttpMessageConverter xssMappingJackson2HttpMessageConverter = new XSSMappingJackson2HttpMessageConverter();
		HttpMessageConverter converter = xssMappingJackson2HttpMessageConverter;
		return new HttpMessageConverters(converter);
	}
}
